package cn.wfu.rlrjds.utils;

import java.io.File;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.junit.Test;

public class FileUtil {
	@Test
	public void testFileUtil() {
		String name = "D:\\a\\apache-tomcat-7.0.42\\apache-tomcat-7.0.42\\webapps\\qlrjds\\image\\123\\repaire\\123\\";

		System.out.println(FilenameUtils.getBaseName(name));
		System.out.println(FilenameUtils.getExtension(name));
		System.out.println(FilenameUtils.getFullPath(name));

	}
}
